unit uOperador;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, uPai_new, FMTBcd, DBClient, Provider, DB, SqlExpr, Menus,
  StdCtrls, Buttons, ExtCtrls, MMJPanel, Mask, DBCtrls, Grids, DBGrids;

type
  TfOperador = class(TfPai_new)
    sdsOperador: TSQLDataSet;
    dspOperador: TDataSetProvider;
    cdsOperador: TClientDataSet;
    DBGrid1: TDBGrid;
    DBEdit1: TDBEdit;
    Label1: TLabel;
    cdsOperadorOPE_CODIGO: TStringField;
    cdsOperadorOPE_NOMOPE: TStringField;
    cdsOperadorOPE_SETOR: TStringField;
    DBEdit2: TDBEdit;
    DBEdit3: TDBEdit;
    Label2: TLabel;
    Label3: TLabel;
    procedure FormShow(Sender: TObject);
    procedure btnIncluirClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fOperador: TfOperador;

implementation

uses udm;

{$R *.dfm}

procedure TfOperador.FormShow(Sender: TObject);
begin
  //inherited;
  if (cdsOperador.Active) then
    cdsOperador.Close;
  cdsOperador.Open;
end;

procedure TfOperador.btnIncluirClick(Sender: TObject);
begin
  inherited;
  dbEdit1.SetFocus;
end;

end.
